package com.jymj.service.impl;

import com.jymj.dao.FeiZhaiDao;
import com.jymj.entity.KeyValueEntity;
import com.jymj.entity.huji.FeiZhaiEntity;
import com.jymj.service.FeiZhaiService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by ljj on 2017/4/6.
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class FeiZhServiceImpl implements FeiZhaiService {

    @Resource
    private FeiZhaiDao feiZhaiDao;

    @Override
    public List<FeiZhaiEntity> getFeiZhaiEn(Integer objectid) {
        return feiZhaiDao.getFeiZhaiEn(objectid);
    }

    @Override
    public List<FeiZhaiEntity> getFeiZhaiByCunName(String cunName) {
        return feiZhaiDao.getFeiZhaiByCunName(cunName);
    }

    @Override
    public List<KeyValueEntity> getStallList(String points, String code) {
        Map map = new HashMap();
        map.put("points", points);
        map.put("code", code);
        return feiZhaiDao.getStallList(map);
    }

    @Override
    public List<KeyValueEntity> getStatebusineList(String points, String code) {
        Map map = new HashMap();
        map.put("points", points);
        map.put("code", code);
        return feiZhaiDao.getStatebusineList(map);
    }

    @Override
    public List<KeyValueEntity> getRegisList(String points, String code) {
        Map map = new HashMap();
        map.put("points", points);
        map.put("code", code);
        return feiZhaiDao.getRegisList(map);
    }

    @Override
    public List<KeyValueEntity> getIndustryList(String points, String code) {
        Map map = new HashMap();
        map.put("points", points);
        map.put("code", code);
        return feiZhaiDao.getIndustryList(map);
    }

}
